package com.riteny.paymentgateway.swifypass.datasource;

import com.riteny.paymentgateway.swifypass.config.SwiftPassPaymentGatewaySetting;

import java.util.Map;

/**
 * @author Riteny
 * 2022/1/6  16:34
 */
public class DefaultMultipleMchProfileDatasourceImpl implements MultipleMchProfileDatasource {

    Map<String, SwiftPassPaymentGatewaySetting> setting;

    public DefaultMultipleMchProfileDatasourceImpl(Map<String, SwiftPassPaymentGatewaySetting> setting) {
        this.setting = setting;
    }

    @Override
    public SwiftPassPaymentGatewaySetting getPaymentGatewayProfile(String key) {
        return setting.get(key);
    }
}
